Use -ffloat-store on i386.
authorBernd Zeimetz <bernd@bzed.de>
Wed, 5 May 2010 16:29:21 +0000 (18:29 +0200)
committerBernd Zeimetz <bernd@bzed.de>
Wed, 5 May 2010 22:31:12 +0000 (00:31 +0200)
debian/rules

index 0f0dcbcdb854160ffcdebbedf74b207f643f1bf8..056816abad0561f1edd568abd6aaf1469898a417 100755 (executable)
@@ -18,6 +18,13 @@ ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
 else
        CFLAGS += -O2
 endif
+
+# Extended precision on i386 results in weird bugs, so we build
+# with -ffloat-store.
+ifeq (i386,$(strip $(shell dpkg-architecture -qDEB_HOST_ARCH_CPU)))
+CFLAGS += -ffloat-store
+endif
+
 LDFLAGS +=  -Wl,-z,defs
 CONFENV = LDFLAGS="$(LDFLAGS)" CFLAGS="$(CFLAGS)"